﻿@model JRFinances.ViewModels.Groups.ManageGroupUsersViewModel

<fieldset>
<legend>
    @Model.Name
</legend>

<div class="standard_padding">
<table>
    <tr>
        <th>
            Aktywni uzytkownicy
        </th>
        <th>
        </th>
    </tr>

@foreach (var item in Model.Activated) {
    <tr>
        <td>
            @item
        </td>
        <td>@Html.ActionLink("Usun", "DeleteUser", new { id = @Model.GroupId, userName = item })</td>
    </tr>
}

</table>
</div>
<div class="standard_padding">
<table>
    <tr>
        <th>
            Nieaktywni uzytkownicy
        </th>
    </tr>

@foreach (var item in Model.NotActivated) {
    <tr>
        <td>
            @item
        </td>
        <td>@Html.ActionLink("Aktywuj", "ActivateUser", new { id = @Model.GroupId, userName = item }) | @Html.ActionLink("Usun", "DeleteUser", new { id = @Model.GroupId, userName = item })</td>
    </tr>
}

</table>
</div>

</fieldset>
